/*  一个虚拟标准控制器，用来将各种不同型号的远程控制摇杆遥控等 虚拟成一个标准控制器来调用*/
#include "bsp_uni_remote.h"

#include "stdio.h"

void RemoteControlPrintChannels(UniRemote_HandleTypeDef* hur) {
    printf("=== Uni Remote Control Data ===\n");
    printf("Left Stick:  X=%4d, Y=%4d\n", hur->left_x, hur->left_y);
    printf("Right Stick: X=%4d, Y=%4d\n", hur->right_x, hur->right_y);
    printf("Switches: sw-mode:%2d, sw-power:%2d, sw-rate=%4d\n", hur->switch_mode,
           hur->switch_power, hur->switch_rate);
    printf("Link status:%s,Coccention: %s\n", hur->frame_lost ? "Lost" : "OK", hur->frame_connected ? "OK" : "Lost");
    printf("============END=============\n\n");
}